package com.aron;

import java.util.Random;

/**
 * @version v1.0
 * @ProjectName: studycoding
 * @ClassName: Dir
 * @Description: TODO(一句话描述该类的功能)
 * @Author: Leo
 * @Date: 2020/6/3 18:35
 */
public enum Dir {
    LEFT,UP,RIGHT,DOWN;

    private static Random random=new Random();
    public static Dir randomDir(){
       return   values()[random.nextInt(values().length)];
    }
}
